package com.runvp.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "biz.wechat")
public class WechatConfigure {

    // 商户支付秘钥 apiv3
    private static String key = "wv3dsjdkjs41hj3SDKJLDSXUasconvf3";
    //小程序ID
    private static String app_id = "wx5f2d8097e2664ce1";
    //商户号
    private static String mch_id = "1631613404";
    // 小程序的secret
    private static String secret = "2acb9b3ef91c8f4853b155d2bd6db3da";

    // 商户API私钥路径
    private static String privateKeyPath = "D:\\work\\共享售卖机\\ai无人共享设备工厂\\app支付\\微信支付\\证书\\cert\\apiclient_key.pem";
    // 商户证书序列号
    private static String merchantSerialNumber = "5B5A75F63D4E6D09F2AF9E9E3F60FC2422EADEE6";
    // 微信支付平台证书路径
    private static String wechatPayCertificatePath = "D:\\work\\共享售卖机\\ai无人共享设备工厂\\app支付\\微信支付\\证书\\cert\\wechatPayCertificate.pem";

    //支付回调地址（你自己的请求地址，可以自己随意配置啦，写在这方便你理解）
    public static String notify_url = "https://runvp.com/shop/pay/weixin/callback/wxNotify";
    //交易类型（这里是小程序）
    public  static String trade_type = "JSAPI";
    //统一下单API接口链接（微信官方的接口）
    public  static String url = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    /** 微信官港授权地址*/
    public  static String wechatAuthUrl = "https://api.weixin.qq.com/sns/jscode2session";
    public static String getKey() {
        return key;
    }

    public  void setKey(String key) {
        WechatConfigure.key = key;
    }

    public static String getApp_id() {
        return app_id;
    }

    public  void setApp_id(String app_id) {
        WechatConfigure.app_id = app_id;
    }

    public static String getMch_id() {
        return mch_id;
    }

    public  void setMch_id(String mch_id) {
        WechatConfigure.mch_id = mch_id;
    }

    public static String getWechatAuthUrl() {
        return wechatAuthUrl;
    }

    public  void setWechatAuthUrl(String wechatAuthUrl) {
        WechatConfigure.wechatAuthUrl = wechatAuthUrl;
    }

    public static String getSecret() {
        return secret;
    }

    public  void setSecret(String secret) {
        WechatConfigure.secret = secret;
    }

    public static String getNotify_url() {
        return notify_url;
    }

    public  void setNotify_url(String notify_url) {
        WechatConfigure.notify_url = notify_url;
    }

    public static String getTrade_type() {
        return trade_type;
    }

    public static void setTrade_type(String trade_type) {
        WechatConfigure.trade_type = trade_type;
    }

    public static String getUrl() {
        return url;
    }

    public  void setUrl(String url) {
        WechatConfigure.url = url;
    }


    public static String getPrivateKeyPath() {
        return privateKeyPath;
    }

    public void setPrivateKeyPath(String privateKeyPath) {
        WechatConfigure.privateKeyPath = privateKeyPath;
    }

    public static String getMerchantSerialNumber() {
        return merchantSerialNumber;
    }

    public void setMerchantSerialNumber(String merchantSerialNumber) {
        WechatConfigure.merchantSerialNumber = merchantSerialNumber;
    }

    public static String getWechatPayCertificatePath() {
        return wechatPayCertificatePath;
    }

    public void setWechatPayCertificatePath(String wechatPayCertificatePath) {
        WechatConfigure.wechatPayCertificatePath = wechatPayCertificatePath;
    }
}
